package jdk8的特性.函数式接口.过滤式案例.策略;

import com.sun.org.apache.xpath.internal.operations.Bool;

/**
 * @author idea
 * @data 2018/9/15
 */
public class Test {

    public static void main(String[] args) {
        String number="f5sss";
        isValidateUser(number,number1 -> {
            System.out.println("this is ok");
            return true;
        });
        isValidateUser(number,new Factory05());
    }



    public static boolean isValidateUser(String number,Streagy streagy){
        return streagy.divideObj(number);
    }
}
